package org.example.schoolbus;

import org.example.schoolbus.controller.CollectionController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.HashMap;
import java.util.Map;

@SpringBootTest
public class Collectiontest {
    @Autowired
    private CollectionController collectionController;
    @Test
    public void testddcollection() {
        Map<String,Object> map = new HashMap<>();
       map.put("userphone","189678");
        map.put("route_name","恒星1号线");
        map.put("station_name","红信书院站");
        System.out.println(collectionController.addcollecton(map));
    }
    @Test
    public void testlookcollection() {
        Map<String,Object> map = new HashMap<>();
       map.put("userphone","189678");
        System.out.println(collectionController.lookcollection(map));
    }
}
